package com.weimob.mcloud.wechatwork.customer.service.user.enums;

import lombok.Getter;

/**
 * 业务异常枚举
 *
 * @Author LeoLee
 * @Date 2022/6/17 15:34
 * @Version 1.0
 */
@Getter
public enum BizErrorCodeEnum {

    NULL_PARAMS(10L, "所需参数为空"),
    NULL_USERID(11L, "企微userId为空"),

    /**
     * 侧边栏 100000-199999
     */
    NULL_URL(100000L, "获取不到分享链接，请联系管理员"),
    NULL_EMPLOYEE_INFO(100001L, "员工信息为空"),
    NULL_SHORT_URL_CONVER_TYPE(100002L, "短链类型为空"),

    EMPLOYEE_ID_IS_NULL(900001L, "员工txUserId不允许为空");

    private Long errorCode;

    private String desc;

    BizErrorCodeEnum(Long errorCode, String desc) {
        this.errorCode = errorCode;
        this.desc = desc;
    }
}
